<template>
    <el-tabs type="border-card">
      <el-tab-pane v-for="(item, index) in tabItems" :key="index" :label="item.label">
        <slot name="content"></slot>
      </el-tab-pane>
    </el-tabs>
  </template>
  
  <script>
  export default {
    props: {
      tabItems: {
        type: Array,
        required: true
      }
    }
  }
  </script>
  
  <style scoped>
  /* 你的样式 */
  </style>